package kr.hkit.powerjava.chapter05;

import java.util.Scanner;

public class lab2 {
	public static void main(String[] args) {
		
		int x;
		
		Scanner input = new Scanner(System.in);
		System.out.print("연도를 입력하세요");
		x = input.nextInt();
		
		boolean isLeapYear = (x%4==0 && (x&100)!=0) || (x%400==0); 
		
		System.out.println(isLeapYear);
	}
}
